<template>
  <div :class="{ 'basic-container--block': block }" class="basic-container">
    <ElCard>
      <slot></slot>
    </ElCard>
  </div>
</template>

<script>
  export default {
    name: 'BasicContainer',
    props: {
      block: {
        type: Boolean,
        default: false
      }
    }
  }
</script>

<style lang="scss">
  .basic-container {
    box-sizing: border-box;
    height: 100%;
    padding: 8px 10px;
    overflow: auto;
    border-radius: 10px;

    .el-card {
      width: 100%;
    }

    &--block {
      .el-card,
      .el-card__body {
        height: 100%;
      }
    }
  }
</style>
